<template>
	<view class="cart-page">
		<home :clickColorIndex="-1"></home>
		<fillOrder @fillOrderN="fillOrderNFun" @orderData="orderDataFun" @cartN="cartTotalNFun" :cartList="cartList">
		</fillOrder>
		<menu-tool :cartTotalCount="cartTotalCountN"></menu-tool>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cartList: [],
			}
		},
		mounted() {
			this.currentStepFun()
		},
		methods: {
			currentStepFun() {
				const val = uni.getStorageSync('transmit')
				console.log('00000:', val)

				this.currentStep = val.currentStep - 0;
				this.cartList = val // 传递过来的数据
				console.log('this.cartList:', this.cartList)
				this.totalPrice = val.totalPrice // 总价价格
			},
		}
	}
</script>

<style scoped>
	.cart-page {
		background-color: #F5F5F5;
		min-height: 100%;
	}
</style>